using System;
using WegasManagementSystem.Models;

namespace WegasManagementSystem
{
    /// <summary>
    /// 全局配置类，用于存储应用程序级别的配置和状态
    /// </summary>
    public static class GlobalConfig
    {
        /// <summary>
        /// 当前登录用户
        /// </summary>
        public static User CurrentUser { get; set; }

        /// <summary>
        /// 应用程序版本
        /// </summary>
        public static string AppVersion => "1.0.0";

        /// <summary>
        /// 应用程序名称
        /// </summary>
        public static string AppName => "高校工资管理系统";

        /// <summary>
        /// 获取当前时间的年月字符串，格式：yyyy-MM
        /// </summary>
        public static string CurrentYearMonth => DateTime.Now.ToString("yyyy-MM");

        /// <summary>
        /// 默认工作日天数
        /// </summary>
        public static double DefaultWorkDays => 21.75;
    }
} 